var li = [1, 2, 3, 4, 5]
console.log(li.length) // 5
delete li[2]
console.log(li) // [ 1, 2, <1 empty item>, 4, 5 ]
console.log(li.length) // 5